﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class StartPanel : BasePanel
{
    private Button loginBtn;

    private void Start()
    {
        loginBtn = this.transform.Find("LoginBtn").GetComponent<Button>();
        loginBtn.onClick.AddListener(OnLogin);
    }

    public override void OnEnter()
    {
        base.OnEnter();
        //gameObject.SetActive(true);
    }

    private void OnLogin()
    {
        PlayClickSound();
        uiMgr.PushPanel(UIPanelType.Login);
    }

    public override void OnPause()
    {
        base.OnPause();
        //gameObject.SetActive(false);
    }

    public override void OnExit()
    {
        base.OnExit();
    }
}
